import cupk.abstractfactory.AbstractProduct.Jacket;
import cupk.abstractfactory.AbstractProduct.Shoes;
import cupk.abstractfactory.AbstractProduct.Trousers;
import cupk.abstractfactory.ConcreteFactory.Adidas;
import cupk.abstractfactory.ConcreteFactory.Nike;
import cupk.abstractfactory.IAbstractFactory;

public class Main {
    public static void main(String[] args) {
        //声明变量
        Jacket myJacket;
        Shoes myShoes;
        Trousers myTrousers;
        //创建具体工厂
        IAbstractFactory adidas = new Adidas();
        //使用工厂创建具体服装类型
        myJacket = adidas.createJacket();
        myShoes = adidas.createShoes();
        myTrousers = adidas.createTrousers();
        //输出信息
        System.out.println(myJacket.showInfo());
        System.out.println(myTrousers.showInfo());
        System.out.println(myShoes.showInfo());
    }

}